<template>
    <div>
        <img :src="imgUrl">
        <p>{{name}}</p>
    </div>
</template>

<script>
    export default {
        props: {
            imgUrl: String,
            name: String,
        }
    }
</script>

<style lang="scss" scoped>
    div{
        width: 100%;
        img{
            width: 23vw;
            text-align: center;
        }
        p{
            font-size: 4vw;
            padding-top: 1vw;
            text-align: center;
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
        }
    }
</style>